#define _CRT_SECURE_NO_WARNINGS 1

#include "my_list.h"

void test1()
{
	my_list::list<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	v.push_back(6);

	my_list::list<int>::iterator it = v.begin();
	/*v.push_front(100);
	v.erase(v.begin());
	v.Pop_back();
	v.Pop_front();
	it = v.begin();*/
	// v.clear();
	my_list::list<int> k = v;

	for (auto n : v)
	{
		cout << n << " ";
	}
	cout << endl;
	for (auto n : k)
	{
		cout << n << " ";
	}
}

void test2()
{
	struct pos
	{
		int a1 = 1;
		int a2 = 2;
	};
	my_list::list<pos> x;
	my_list::list<pos>::iterator it = x.begin();
	while (it != x.end())
	{
		cout << (*it).a1;
		cout << it->a2;
	}
}

void test3()
{
	 const my_list::list<int> x;
	my_list::list<int>::const_iterator it = x.begin();
	*it;
	
}

int main()
{
	test1();
	return 0;
}
